package ThirdTier.Serveur;

import java.rmi.AlreadyBoundException;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
import java.rmi.server.UnicastRemoteObject;


public class ServeurThirdTier {

	public static void main(String[] args) throws RemoteException, AlreadyBoundException {
		//Déclaration des services proposés
		ThirdTierServiceInterface unService = new ThirdTierService();
		Registry registry = LocateRegistry.createRegistry(2000);
		registry.bind("ThirdTierServiceInterface", unService);	

	}

}
